﻿<%@ Page Language="vb" ContentType="text/xml" AutoEventWireup="false" CodeBehind="RSS.aspx.vb" Inherits="customtech.RSS" %>
<%@ Import Namespace="System.Data" %>

<!--http://msdn.microsoft.com/en-us/library/aa478968.aspx-->

 <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
    ConnectionString="<%$ ConnectionStrings:connstr %>" 
    ProviderName="<%$ ConnectionStrings:connstr.ProviderName %>" 
    SelectCommand="SELECT [ID], [BuildName], [BuildPicture], [AddedBy] FROM [Builds]">
</asp:SqlDataSource>

<asp:repeater id="RSSrepeater" runat="server" DatasourceID="SqlDataSource1">
<HeaderTemplate>
<rss version="2.0">
 <channel>
  <title>New Builds</title>
   <description>Customtech</description>
</HeaderTemplate>
<ItemTemplate>
    <item>
     <title><%# FormatForXML(DataBinder.Eval(Container.DataItem, "BuildName"))%></title>
     <link> details.aspx?ID=<%# FormatForXML(DataBinder.Eval(Container.DataItem, "ID"))%></link>
    </item>
</ItemTemplate>
<FooterTemplate>
   </channel>
  </rss>
 </FooterTemplate>
</asp:repeater>

